package com.zjitc.serviceedu.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.zjitc.serviceedu.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: ${赵诚挚}
 * @Date: 2024/10/27 12:16
 */
@Data
public class EssayAvatarVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章作者")
    private String author;

    @ApiModelProperty(value = "文章标题")
    private String title;


    @ApiModelProperty(value = "文章讲师id")
    private Long  teacherId;

    @ApiModelProperty(value = "文章封面")
    private String cover;

    @ApiModelProperty(value = "文章类型")
    private String type;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = BaseEntity.CustomDateDeserializer.class)
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JsonDeserialize(using = BaseEntity.CustomDateDeserializer.class)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
    @ApiModelProperty(value = "文章类容")
    private String content;
    @ApiModelProperty(value = "讲师头像")
    private String avatar;
    @ApiModelProperty(value = "文章浏览数")
    private Long Browse;

    @ApiModelProperty(value = "文章点赞数")
    private Long thumbUp;
}
